package com.wantup.springboot.boot.quartz.demo1;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Zhaoluowei
 * @version 1.0
 * @date 2018/11/9 11:01
 */
@Component
@EnableScheduling
public class SecondJob {

    public void secondJobTask(){
        String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        System.out.println("secondJobTask。。。exe..."+date);
    }

}
